read txt file pandas

99

read txt file pandas -

df = pd.read_csv('output_list.txt', sep=" ", header=None, names=["a", "b", "c"])

read txt in pandas -

data = pd.read_csv('output_list.txt', sep=" ", header=None)
data.columns = ["a", "b", "c", "etc."]

Comments

Submit
0 Comments